/*
 * Copyright 2010 Michael Nitsche
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package de.mnit.basis.crypt.cipher;

import java.io.InputStream;
import java.io.OutputStream;

import de.mnit.basis.fehler.system.F_Sys_Sicherheit;


/**
 * @author Michael Nitsche
 * 08.01.2007	Erstellt
 * 
 * TODO dieses Interface ist eigentlich sinnlos!
 */
public interface S_JavaCipher {

	public abstract JAVA_CIPHER verfahren(); //TODO So kanns nicht neutral werden

	public abstract int schluesselLaengeMin();
	public abstract int schluesselLaengeMax();
	
	public abstract byte[] verschluesseln(byte[] text, byte[] schluessel) throws F_Sys_Sicherheit;
	public abstract byte[] entschluesseln(byte[] text, byte[] schluessel) throws F_Sys_Sicherheit;

	public abstract void verschluesseln(InputStream quelle, OutputStream ziel, byte[] schluessel, boolean warten) throws F_Sys_Sicherheit;
	public abstract void entschluesseln(InputStream quelle, OutputStream ziel, byte[] schluessel, boolean warten) throws F_Sys_Sicherheit;

}